package com.dazhi.boot.context.event;

import com.dazhi.boot.ConfigurableBootstrapContext;
import com.dazhi.boot.SpringApplication;
import org.springframework.context.ConfigurableApplicationContext;

public class ApplicationStartingEvent extends SpringApplicationEvent{
    private final ConfigurableBootstrapContext bootstrapContext;
    public ApplicationStartingEvent(ConfigurableBootstrapContext bootstrapContext, SpringApplication application,
                                    String[] args) {
        super(application, args);
        this.bootstrapContext = bootstrapContext;
    }

    public ConfigurableBootstrapContext getBootstrapContext() {
        return this.bootstrapContext;
    }
}
